package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.atguigu.ssyx.model.acl.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * ClassName: PermissionService
 * Package: com.atguigu.ssyx.acl.service
 * Description:
 *
 * @Author: 比特张
 * @Create: 2023/7/13 - 20:33
 * @Version: v1.0
 */
public interface PermissionService extends IService<Permission> {
    List<Permission> queryAllPermission();

    void removeChildById(Long id);

    List<Permission> getPermissionByRoleId(Long roleId);

    void doAssign(Long roleId, Long[] permissionIds);
}
